package flater.cairngormtips.controller.commands
{

import com.adobe.cairngorm.control.CairngormEvent;
import com.universalmind.cairngorm.commands.Command;

import flater.cairngormtips.controller.delegates.AnnounceFaultEventExampleDelegate;

/**
 *  Performs the AnnounceFaultEvent operation, using the AnnounceFaultEventDelegate.<br/>
 *  <br/>                                                                                            
 *  Author: <a href="http://www.adamflater.net" target="_blank">Adam Flater</a>
 *  <br/>
 *                                                                                           
 *  @see flater.cairngormtips.controller.events.AnnounceFaultEventExampleEvent
 *  @see flater.cairngormtips.controller.CairngormTipsFrontController
 *  @see flater.cairngormtips.controller.delegates.AnnounceFaultEventExampleDelegate
 */
public class AnnounceFaultEventExampleCommand extends Command
{
	public function AnnounceFaultEventExampleCommand()
	{
		super();
	}
	
	override public function execute( event : CairngormEvent ) : void
	{
		var delegate : AnnounceFaultEventExampleDelegate = 
		  new AnnounceFaultEventExampleDelegate( this ); 
		                                                 
	    //--------------------------------------
	    //  "this" (above) is an IResponder, 
	    //  Command implements the IResponder 
	    //  interface.
	    //--------------------------------------
	    
        delegate.exampleOperation();
	}
	
    //--------------------------------------
    //  Even without overriding the result 
    //  or fault method, AnnounceFaultEvent 
    //  is automatically dispatched by the 
    //  UM Command class when   
    //  AnnounceFaultEventExampleDelegate
    //  passes a FaultEvent in 
    //  exampleOperation();
    //--------------------------------------
	 

} //  end class
} //  end package